package admin

import (
	"fmt"
	"github.com/gin-gonic/gin"
	"go-gin-api-master/internal/pkg/core"
)

func APIHandler(c core.Context) {

	pass := c.GetHeader("pass")
	if pass == "1" {
		c.JSON(200, gin.H{"message": "请求成功"})
		fmt.Println(pass)
	} else if pass == "2" {

	}
}
